#ifndef LAUNCHER_H
#define LAUNCHER_H

#include <QWidget>
#include <QImage>
#include <QColor>
#include <QPoint>
#include <QPainter>
#include "drawarea.h"
#include "test.h"
#include "constants.h"
#include <cmath>


class launcher
{
public:
    launcher();
    void DrawLauncher(QPainter &painter);
    void DrawBase(QPainter &painter);
    void DrawPivot(QPainter &painter);
    void DrawShaft(QPainter &painter);

    int ReturnShaftRadius() { return shaftheight/2; }
    QPoint ReturnInitBallLocation();

    void SetCoordConverter(coordconv xcc) { CoordConverter = xcc;}


    int baseheight;
    int basewidth;
    QPoint pivotcenterpoint;
    int pivotradius;
    int shaftlength;
    int shaftheight;
    QPoint botrightshaft;
    QPoint toprightshaft;

    coordconv CoordConverter;

    double shafttheta;
    double mintheta;

};

#endif // LAUNCHER_H
